import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/views/Login'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
//引入首页组件
import Home from '@/views/Home'



Vue.use(Router)
Vue.use(ElementUI)
//配置路由
export default new Router({
  routes: [
    //登录路由
    {
      path: '/login',
      component: Login
    },
    //首页路由
    {
      name:'Home',
      path:'/',
      component:Home
    }
    
  ]
})
